package com.un.ebs.production.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.un.ebs.core.enums.IEnum;
import lombok.Getter;

/**
 * @author liubo
 * @email liubocs@163.com
 * @date 2020/2/27 13:28
 */
@Getter
public enum ProductionSeqTypeEnum implements IEnum {

    /**
     * 未指定
     */
    Default(0, "未指定"),

    /**
     * 领料工序
     */
    BomUser(10, "领料"),

    /**
     * 转型
     */
    Production(20, "生产加工"),

    /**
     * 工序委外
     */
    QualityCheck(30, "质检");

    @EnumValue
    private final int value;
    private final String desc;

    ProductionSeqTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public int getCode() {
        return value;
    }
}
